//
//  YCDeviceUtil.h
//  YCRequestModule
//
//  Created by Apple on 2022/11/8.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

// 网络状态
typedef NS_ENUM(NSInteger, YCDeviceNetType) {
    YCDeviceNetTypeUnknown = 0,
    YCDeviceNetTypeWiFi = 1,
    YCDeviceNetType4G = 2,
    YCDeviceNetType3G = 3,
    YCDeviceNetType2G = 4,
    YCDeviceNetTypeWWAN = 5,
};

// 设备方向
typedef NS_ENUM(NSInteger, YCDeviceOrientation) {
    YCDeviceOrientationUnknow = 0,
    YCDeviceOrientationPortrait = 1,
    YCDeviceOrientationLandscape = 2,
};

// 运营商
typedef NS_ENUM(NSInteger, YCCarrierType) {
    YCCarrierTypeUnknow = 0,
    YCCarrierTypeChinaMobile = 1,
    YCCarrierTypeChinaTelecom = 2,
    YCCarrierTypeChinaUnicom = 3,
    YCCarrierTypeOther = 4,
};

@interface YCDeviceUtil : NSObject

// UserAgent
+ (NSString *)ua;
// 运营商
+ (NSString *)carrier;
// 运营商类型
+ (YCCarrierType)carrierType;
// 网络连接类型
+ (YCDeviceNetType)netType;
// 屏幕方向
+ (YCDeviceOrientation)orientation;
// 系统版本（3位）
+ (NSString *)osVersion;
// 获取idfa
+ (NSString *)idfa;
// 生成uuid
+ (NSString *)uuid;
// open_udid
+ (NSString *)openudid;
// 设备ip地址
+ (NSString *)ipAddress;
// 设备mac地址
+ (NSString *)macAddress;
// 设备型号
+ (NSString *)model;
+ (NSInteger)ppi;
// 设备厂商
+ (NSString *)vendor;
// 手机品牌
+ (NSString *)brand;

+ (NSString *)appVersion;

+ (NSString *)systemVersion;

@end

NS_ASSUME_NONNULL_END
